<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>My Project: kern/fs/swapfs.h 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">My Project
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_b3dad8e81b3f37b89b2bf0a8abb2d993.html">kern</a></li><li class="navelem"><a class="el" href="dir_6970c028966d2181dc30ca82e97e0a25.html">fs</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">swapfs.h 文件参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;<a class="el" href="memlayout_8h_source.html">memlayout.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="swap_8h_source.html">swap.h</a>&gt;</code><br />
</div><div class="textblock"><div class="dynheader">
swapfs.h 的引用(Include)关系图:</div>
<div class="dyncontent">
<div class="center"><img src="swapfs_8h__incl.gif" border="0" usemap="#akern_2fs_2swapfs_8h" alt=""/></div>
<map name="akern_2fs_2swapfs_8h" id="akern_2fs_2swapfs_8h">
<area shape="rect" title=" " alt="" coords="292,5,420,32"/>
<area shape="rect" href="memlayout_8h.html" title=" " alt="" coords="266,229,375,256"/>
<area shape="rect" href="swap_8h.html" title=" " alt="" coords="358,80,426,107"/>
<area shape="rect" href="defs_8h.html" title=" " alt="" coords="353,379,416,405"/>
<area shape="rect" href="atomic_8h.html" title=" " alt="" coords="422,304,501,331"/>
<area shape="rect" href="list_8h.html" title=" " alt="" coords="200,304,254,331"/>
<area shape="rect" href="pmm_8h.html" title=" " alt="" coords="420,155,488,181"/>
<area shape="rect" href="vmm_8h.html" title=" " alt="" coords="193,155,261,181"/>
<area shape="rect" href="assert_8h.html" title=" " alt="" coords="552,229,627,256"/>
<area shape="rect" href="mmu_8h.html" title=" " alt="" coords="278,304,346,331"/>
<area shape="rect" href="sync_8h.html" title=" " alt="" coords="118,229,182,256"/>
<area shape="rect" href="intr_8h.html" title=" " alt="" coords="32,304,86,331"/>
<area shape="rect" href="riscv_8h.html" title=" " alt="" coords="111,304,175,331"/>
</map>
</div>
</div><div class="textblock"><div class="dynheader">
此图展示该文件直接或间接的被哪些文件引用了:</div>
<div class="dyncontent">
<div class="center"><img src="swapfs_8h__dep__incl.gif" border="0" usemap="#akern_2fs_2swapfs_8hdep" alt=""/></div>
<map name="akern_2fs_2swapfs_8hdep" id="akern_2fs_2swapfs_8hdep">
<area shape="rect" title=" " alt="" coords="81,5,209,32"/>
<area shape="rect" href="swapfs_8c.html" title=" " alt="" coords="5,80,132,107"/>
<area shape="rect" href="swap_8c.html" title=" " alt="" coords="156,80,285,107"/>
</map>
</div>
</div>
<p><a href="swapfs_8h_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:aeb5d0f07237fbe682bf1dcea18a1529e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="swapfs_8h.html#aeb5d0f07237fbe682bf1dcea18a1529e">swapfs_init</a> (void)</td></tr>
<tr class="separator:aeb5d0f07237fbe682bf1dcea18a1529e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a351ae62e17ae15d0be227ee49b1b526f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="swapfs_8h.html#a351ae62e17ae15d0be227ee49b1b526f">swapfs_read</a> (<a class="el" href="memlayout_8h.html#ab79d50f850e06eed7a3ac0453019278b">swap_entry_t</a> entry, struct <a class="el" href="struct_page.html">Page</a> *page)</td></tr>
<tr class="separator:a351ae62e17ae15d0be227ee49b1b526f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41793685a63e0f8e2d48695566bc75bb"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="swapfs_8h.html#a41793685a63e0f8e2d48695566bc75bb">swapfs_write</a> (<a class="el" href="memlayout_8h.html#ab79d50f850e06eed7a3ac0453019278b">swap_entry_t</a> entry, struct <a class="el" href="struct_page.html">Page</a> *page)</td></tr>
<tr class="separator:a41793685a63e0f8e2d48695566bc75bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">函数说明</h2>
<a id="aeb5d0f07237fbe682bf1dcea18a1529e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeb5d0f07237fbe682bf1dcea18a1529e">&#9670;&nbsp;</a></span>swapfs_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void swapfs_init </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="swapfs_8h_aeb5d0f07237fbe682bf1dcea18a1529e_cgraph.gif" border="0" usemap="#aswapfs_8h_aeb5d0f07237fbe682bf1dcea18a1529e_cgraph" alt=""/></div>
<map name="aswapfs_8h_aeb5d0f07237fbe682bf1dcea18a1529e_cgraph" id="aswapfs_8h_aeb5d0f07237fbe682bf1dcea18a1529e_cgraph">
<area shape="rect" title=" " alt="" coords="5,31,101,57"/>
<area shape="rect" href="ide_8c.html#ae4d4db7f714f3df1d9d80d857f4fe85e" title=" " alt="" coords="152,5,277,32"/>
<area shape="rect" href="ide_8c.html#ab8bb6373351f5c5882009f8d37ec7a91" title=" " alt="" coords="149,56,280,83"/>
</map>
</div>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="swapfs_8h_aeb5d0f07237fbe682bf1dcea18a1529e_icgraph.gif" border="0" usemap="#aswapfs_8h_aeb5d0f07237fbe682bf1dcea18a1529e_icgraph" alt=""/></div>
<map name="aswapfs_8h_aeb5d0f07237fbe682bf1dcea18a1529e_icgraph" id="aswapfs_8h_aeb5d0f07237fbe682bf1dcea18a1529e_icgraph">
<area shape="rect" title=" " alt="" coords="137,5,233,32"/>
<area shape="rect" href="swap_8c.html#aecac407d799dab293cab398185a74f35" title=" " alt="" coords="5,5,89,32"/>
</map>
</div>

</div>
</div>
<a id="a351ae62e17ae15d0be227ee49b1b526f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a351ae62e17ae15d0be227ee49b1b526f">&#9670;&nbsp;</a></span>swapfs_read()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int swapfs_read </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="memlayout_8h.html#ab79d50f850e06eed7a3ac0453019278b">swap_entry_t</a>&#160;</td>
          <td class="paramname"><em>entry</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="struct_page.html">Page</a> *&#160;</td>
          <td class="paramname"><em>page</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="swapfs_8h_a351ae62e17ae15d0be227ee49b1b526f_cgraph.gif" border="0" usemap="#aswapfs_8h_a351ae62e17ae15d0be227ee49b1b526f_cgraph" alt=""/></div>
<map name="aswapfs_8h_a351ae62e17ae15d0be227ee49b1b526f_cgraph" id="aswapfs_8h_a351ae62e17ae15d0be227ee49b1b526f_cgraph">
<area shape="rect" title=" " alt="" coords="5,31,109,57"/>
<area shape="rect" href="ide_8c.html#aa3e3300bda460455ef67f4f0b7861e5f" title=" " alt="" coords="157,5,272,32"/>
<area shape="rect" href="pmm_8h.html#a3aa177386346f37eaadf16359ef44da7" title=" " alt="" coords="171,56,258,83"/>
<area shape="rect" href="string_8c.html#a18d9a75dd16f2db6609538cb4ddedaf1" title=" " alt="" coords="320,5,399,32"/>
<area shape="rect" href="pmm_8h.html#ab517d995357f15a4c66fb27a510eb374" title=" " alt="" coords="320,56,399,83"/>
<area shape="rect" href="pmm_8h.html#aaf54bae0ec07dff85b828139f157626d" title=" " alt="" coords="447,56,533,83"/>
</map>
</div>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="swapfs_8h_a351ae62e17ae15d0be227ee49b1b526f_icgraph.gif" border="0" usemap="#aswapfs_8h_a351ae62e17ae15d0be227ee49b1b526f_icgraph" alt=""/></div>
<map name="aswapfs_8h_a351ae62e17ae15d0be227ee49b1b526f_icgraph" id="aswapfs_8h_a351ae62e17ae15d0be227ee49b1b526f_icgraph">
<area shape="rect" title=" " alt="" coords="1123,5,1227,32"/>
<area shape="rect" href="swap_8c.html#af3058f8798ac6b061b6a6ca528ac9932" title=" " alt="" coords="1000,5,1075,32"/>
<area shape="rect" href="vmm_8c.html#a76083b4b497bc14110c89b222892e5a9" title=" " alt="" coords="464,31,555,57"/>
<area shape="rect" href="swap_8c.html#ab3052457b47fe22e700ce9d6620b4485" title=" " alt="" coords="783,31,952,57"/>
<area shape="rect" href="trap_8c.html#a52ce92f648fa34b3877351b9f8240f98" title=" " alt="" coords="292,31,416,57"/>
<area shape="rect" href="trap_8c.html#a9b7dec2ed35d681fdbe2fe46afb695a5" title=" " alt="" coords="101,31,244,57"/>
<area shape="rect" href="trap_8c.html#a372d166e36c086c91e5f5d81e5fead3a" title=" " alt="" coords="5,31,53,57"/>
<area shape="rect" href="pmm_8c.html#a682ec852da4ba9f942d14dd940c9dc50" title=" " alt="" coords="603,81,735,108"/>
</map>
</div>

</div>
</div>
<a id="a41793685a63e0f8e2d48695566bc75bb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a41793685a63e0f8e2d48695566bc75bb">&#9670;&nbsp;</a></span>swapfs_write()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int swapfs_write </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="memlayout_8h.html#ab79d50f850e06eed7a3ac0453019278b">swap_entry_t</a>&#160;</td>
          <td class="paramname"><em>entry</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="struct_page.html">Page</a> *&#160;</td>
          <td class="paramname"><em>page</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="swapfs_8h_a41793685a63e0f8e2d48695566bc75bb_cgraph.gif" border="0" usemap="#aswapfs_8h_a41793685a63e0f8e2d48695566bc75bb_cgraph" alt=""/></div>
<map name="aswapfs_8h_a41793685a63e0f8e2d48695566bc75bb_cgraph" id="aswapfs_8h_a41793685a63e0f8e2d48695566bc75bb_cgraph">
<area shape="rect" title=" " alt="" coords="5,31,113,57"/>
<area shape="rect" href="ide_8c.html#a1d381d983b9bc07a2a4b636ed1997174" title=" " alt="" coords="161,5,280,32"/>
<area shape="rect" href="pmm_8h.html#a3aa177386346f37eaadf16359ef44da7" title=" " alt="" coords="177,56,264,83"/>
<area shape="rect" href="string_8c.html#a18d9a75dd16f2db6609538cb4ddedaf1" title=" " alt="" coords="328,5,407,32"/>
<area shape="rect" href="pmm_8h.html#ab517d995357f15a4c66fb27a510eb374" title=" " alt="" coords="328,56,407,83"/>
<area shape="rect" href="pmm_8h.html#aaf54bae0ec07dff85b828139f157626d" title=" " alt="" coords="455,56,541,83"/>
</map>
</div>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="swapfs_8h_a41793685a63e0f8e2d48695566bc75bb_icgraph.gif" border="0" usemap="#aswapfs_8h_a41793685a63e0f8e2d48695566bc75bb_icgraph" alt=""/></div>
<map name="aswapfs_8h_a41793685a63e0f8e2d48695566bc75bb_icgraph" id="aswapfs_8h_a41793685a63e0f8e2d48695566bc75bb_icgraph">
<area shape="rect" title=" " alt="" coords="1061,31,1169,57"/>
<area shape="rect" href="swap_8c.html#a8b0c44bb44fc801d843522eefc8b43ac" title=" " alt="" coords="929,31,1013,57"/>
<area shape="rect" href="pmm_8c.html#ae2055a0254d79140f1adf784b9b07fea" title=" " alt="" coords="783,31,881,57"/>
<area shape="rect" href="default__pmm_8c.html#a7ed27f53388f855a738e2457f5de682e" title=" " alt="" coords="621,5,735,32"/>
<area shape="rect" href="pmm_8c.html#a8e2dc4d71325ce9ddba783b4289e8e75" title=" " alt="" coords="641,56,715,83"/>
<area shape="rect" href="vmm_8c.html#a24d42b4ed2477d387310ddb18e277071" title=" " alt="" coords="476,31,572,57"/>
<area shape="rect" href="vmm_8c.html#a7a6d4d9a52a15d77de91f761855c1a66" title=" " alt="" coords="475,81,573,108"/>
<area shape="rect" href="vmm_8c.html#a24c860fd06177e90cba06af92ebf1916" title=" " alt="" coords="300,56,413,83"/>
<area shape="rect" href="swap_8c.html#a3d7e1e8f3b1851c9438d2003941e2d0c" title=" " alt="" coords="306,107,407,133"/>
<area shape="rect" href="vmm_8c.html#a01b4552d4673ffbb6a05eb0f12aef62e" title=" " alt="" coords="287,5,427,32"/>
<area shape="rect" href="vmm_8c.html#ab7ebbcc33c2dd26999c3bc6dd5df1f6f" title=" " alt="" coords="137,31,239,57"/>
<area shape="rect" href="vmm_8c.html#a34e0e13c32b08fd108582567c29ccebf" title=" " alt="" coords="5,31,89,57"/>
<area shape="rect" href="swap_8c.html#aecac407d799dab293cab398185a74f35" title=" " alt="" coords="146,107,230,133"/>
</map>
</div>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
